package com.me.template4j.service;

import com.me.template4j.exception.CustomException;
import com.me.template4j.pojo.FileBean;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface DFSService {

    /**
     * 文件上传
     * @param file
     */
    String saveFile(MultipartFile file, String projectName) throws CustomException, IOException;

    /**
     * 文件查找
     */
    List<FileBean> searchFile(String inputFileName, String projectName);

    /**
     * 删除文件
     * @param fileName
     */
    void deleteFile(String fileName, String projectName) throws CustomException;

}
